package com.xiaoq.parking.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.xiaoq.parking.entity.ParkingEntity;
import com.xiaoq.parking.repository.IParkingRepository;
import com.xiaoq.parking.service.IParkingService;

@Service
public class ParkingServiceImpl implements IParkingService{
	
	@Autowired
	private IParkingRepository parkingRep;

	@Override
	public ParkingEntity addParking(ParkingEntity parking) {
		return parkingRep.addParking(parking);
	}

	@Override
	public List<ParkingEntity> findParkings(Double latitude, Double longitude, String sitesId) {
		return parkingRep.findParkings(latitude, longitude, sitesId);
	}
	
	

}
